package com.gqz.equip.mapstruct;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gqz.equip.entity.TEnWzSblxEntity;
import com.gqz.equip.vo.TEnWzSblxVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * @ClassName TEnWzSblxMapstruct
 * @Description 新能源-物资-设备类型树
 * @Date 2022-10-25 11:28:48
 * @Version 1.0
 * @Author input you name
 */
@Mapper(componentModel = "spring", imports = {})
@Component
public interface TEnWzSblxMapstruct {

    TEnWzSblxVo toVo(TEnWzSblxEntity entity);

    List<TEnWzSblxVo> toVos(List<TEnWzSblxEntity> entity);


    @Mapping(target = "optimizeJoinOfCountSql", ignore = true)
    Page<TEnWzSblxVo> toVos(Page<TEnWzSblxEntity> entity);

    TEnWzSblxEntity toEntity(TEnWzSblxVo vo);

    List<TEnWzSblxEntity> toEntitys(List<TEnWzSblxVo> vos);

}
